﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Tetris
{
    public struct MatrixCoords
    {
        public int Row { get; set; }
        public int Col { get; set; }

        public MatrixCoords(int row, int col) : this()
        {
            this.Row = row;
            this.Col = col;
        }

        //for moving in different directions
        public static MatrixCoords operator +(MatrixCoords first, MatrixCoords second)
        {
            return new MatrixCoords(first.Row + second.Row, first.Col + second.Col);
        }

        public static MatrixCoords operator -(MatrixCoords first, MatrixCoords second)
        {
            return new MatrixCoords(first.Row - second.Row, first.Col - second.Col);
        }
    }
}

